package net.zjitc.web;

import net.zjitc.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserController {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("springContext.xml");
        UserService bean = context.getBean(UserService.class);
        bean.save();
    }
}
